package com.hoshiicloud.lessee.feign.hystrix;

import com.hoshiicloud.lessee.feign.IdGeneratorService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author zhangshuhu
 * @title: HystrixIdGeneratorFeignFallback
 * @projectName hoshiicloud-goods
 * @description:HystrixIdGeneratorFeignFallback
 * @since 2019-05-31
 */
public class HystrixIdGeneratorFeignFallback implements IdGeneratorService {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public String queryGeneratorId() {
        logger.error("hoshiicloud-goods服务Feign调用{}异常", "IdGeneratorService.queryGeneratorId");
        return null;
    }
}
